package cn.wh.netty.pojo;


import io.netty.channel.Channel;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: HongXiaoHan
 * @Description 房间Map
 * @Date: 2021/2/9 11:38
 */
public class RoomMapManagement {

    public static HashMap<String, SignalClient> roomMap = new HashMap();

    public static HashMap<String, HashMap<String, SignalClient>> tableRoomMap = new HashMap<>();


    /**
     * 获取RoomMap
     *
     * @param roomId
     * @return
     */
    public static HashMap<String, SignalClient> getRoom(String roomId) {
        return tableRoomMap.get(roomId);
    }

}
